<?php
defined('SYSPATH') OR die('No direct access allowed.');
/**
 * index.php
 * @author ranuandra
 *
 * 19 Agu 2011 10:32:17
 *
 * 
 */

?>
	<table class="tbltitle" align="center">
	<thead>
		<tr>
			<td class="title">
				<?php 
				if(isset($title))
				{
					echo $title;	
				}
				?>
			</td>
			<td class="toolbar">		
					<a href="<?php echo URL::base()?>user/new" class="clsform">+ New</a> 
			</td>
		</tr>
	</thead>
	</table>
<div class="tbldata">
<table class="data" class="center">
	<thead>
		<tr>
			<th>ID</th>
			<th>Username</th>
			<th>E-mail</th>
			<th>Login Terakhir</th>
			<th></th>
		</tr>
	<thead>
	<tbody>
<?php 
if(isset($datas))
{
	foreach($datas as $data)
	{
?>
		<tr>
			<td><?php echo $data->id?></td>
			<td><?php echo $data->username?></td>
			<td><?php echo $data->email?></td>
			<td><?php echo date("d-m-Y", $data->last_login)?></td>
			<td>
				<table>
					<tr>
						<td class="action"><a href="<?php echo URL::base()?>user/delete/<?php echo $data->id?>" class="clsform"><span class="icon_delete_16"></span>Hapus</a></td>
						<td class="action"><a href="<?php echo URL::base()?>user/edit/<?php echo $data->id?>" class="clsform"><span class="icon_edit_16"></span>Edit</a></td>
					</tr>
				</table>
				
				
			</td>
		</tr>
<?php 		
	}
}
?>
	</tbody>
</table>
</div>